package org.zw.store.admin.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.zw.store.admin.dto.MealDto;
import org.zw.store.admin.model.Meal;

import java.util.List;

@Mapper
public interface MealDao {
    @Select("select * from t_meal")
    List<Meal> findMealList();

    @Insert("insert into t_meal(meal_name,cls_id,meal_price,meal_desc,insert_time,meal_pic) values (#{meal_name},#{cls_id},#{meal_price},#{meal_desc},#{insert_time},#{meal_pic})")
    void insertMeal(MealDto mealDto);
}
